package com.lms.desiginmode.singleton;

/**
 * @Author: 李孟帅
 * @CreateTime: 2020-12-10 14:21
 * @Description:  静态内部类：线程安全、懒加载、效率高
 */
public class SingletonObject5 {
    private static SingletonObject5 instance;
    private static class Singleton{
        private static final SingletonObject5 INSTANCE=new SingletonObject5();
    }

    private SingletonObject5() {
    }

    public static SingletonObject5 getInstance() {
        return Singleton.INSTANCE;
    }
}
